//
//  ST_SameCityEmptyView.swift
//  btvideo
//
//  Created by mac on 2019/12/12.
//  Copyright © 2019 JarvanZhang. All rights reserved.
//

import UIKit
import SnapKit
import SwifterSwift

class ST_SameCityEmptyView: UIView {
    
    static let width = 300.cgFloat

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = Color.white
        
        self.addSubview(cover_image_view)
        self.addSubview(content_label)
        
        cover_image_view.snp.makeConstraints { (make) in
            make.width.equalTo(200)
            make.height.equalTo(180)
            make.top.equalToSuperview().offset(20)
            make.centerX.equalToSuperview()
        }
        
        content_label.snp.makeConstraints { (make) in
            make.top.equalTo(cover_image_view.snp.bottom).offset(20)
            make.centerX.equalToSuperview()
        }
        
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
//    MARK: - Properties
    lazy var cover_image_view:UIImageView = {
        let control = UIImageView()
        control.image = ST_ImageUtils.imageName("提示_img_同城空")
        return control
    }()

    
    lazy var content_label:UILabel = {
        let control = UILabel.init()
        let attrString = NSMutableAttributedString(string: "再等等看~附近暂时没人哦！")
        let attr: [NSAttributedString.Key : Any] = [.font: UIFont.systemFont(ofSize: 16),.foregroundColor: UIColor(red: 0.6, green: 0.6, blue: 0.6, alpha: 1)]
        attrString.addAttributes(attr, range: NSRange(location: 0, length: attrString.length))
        control.attributedText = attrString
        return control
    }()
    
    
}
